/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package researchgrants.parts.GrantRequest.filters;

import researchgrants.parts.GrantRequest.*;

/**
 * Filter a GrantRequest if its current status' code (flagged by the last status change), is unsubmitted
 * @author DOStudent1
 */
class GrantRequestFilterLastStatusChangeUnsubmitted implements GrantRequestFilter {

    public boolean isFiltered(GrantRequest grantRequest) {
        // it is unsubmitted if no other status change exists
        return(grantRequest.getLastStatusChange()!=null);
    }

}
